<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>Left menu collapsed</title>

    <?php $this->load->view('library/header');?>
    <link rel="stylesheet" type="text/css" href="/public/js/bootstrap-select-1.12.4/dist/css/bootstrap-select.css" />
</head>

<body class="sticky-header left-side-collapsed">

<section>
    <?php $this->load->view('library/left');?>

    <!-- main content start-->
    <div class="main-content" >

        <?php $this->load->view('library/top');?>

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <?php $this->load->view('library/search');?>
                    <section class="panel">
                        <?php echo form_open('', 'class="form-horizontal adminex-form"');?>
                        <header class="panel-heading">
                            Responsive table
                            <span class="tools pull-right">
                                <button class="btn btn-info" type="submit">提交信息</button>
                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                            </span>
                        </header>
                        <div class="panel-body">
                            <section id="unseen">
                                <table class="table table-bordered table-striped table-condensed">
                                    <thead>
                                    <tr>
                                        <th width="6%">图片</th>
                                        <th width="10%">进货价格</th>
                                        <th width="10%">产品类型</th>
                                        <th width="15%" class="numeric">供货商</th>
                                        <th class="numeric">进货链接</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach ($goods_list as $row):?>
                                        <tr>
                                            <td class="center"><img style="width: 50px;" src="<?php echo $row['original_img'];?>" /></td>
                                            <td><input type="text" name="<?php echo $row['goods_id'];?>[in_price]" class="form-control small" value="<?php echo $row['in_price'];?>"></td>
                                            <td class="numeric">
                                                <select class="form-control small"  name="<?php echo $row['goods_id'];?>[type_id]">
                                                    <option value="0">选择类型</option>
                                                    <?php echo $type_option_str;?>
                                                </select>
                                            </td>
                                            <td class="numeric">
                                                <select data-live-search-placeholder="搜索供应商" data-live-search="true" class="form-control selectpicker"  name="<?php echo $row['goods_id'];?>[supp_id]">
                                                    <option value="0">选择供应商</option>
                                                    <?php echo $suppliers_option_str;?>
                                                </select>
                                            </td>
                                            <td class="numeric"><input name="<?php echo $row['goods_id'];?>[supp_url]" type="text" class="form-control small" value="<?php echo $row['supp_url'];?>"></td>
                                        </tr>
                                    <?php endforeach;?>
                                    </tbody>
                                </table>
                            </section>
                        </div>
                        </form>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer class="sticky-footer">
            Footer contents goes here
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<?php $this->load->view('library/footer');?>

<!--编辑器-->
<script src="/public/js/summernote/dist/summernote.js"></script>
<script src="/public/js/summernote/dist/lang/summernote-zh-CN.js"></script>

<script src="/public/js/bootstrap-select-1.12.4/dist/js/bootstrap-select.min.js"></script>

<script src="/public/js/imageuploader/jquery.imageuploader.js"></script>

<script src="/public/js/nestable/jquery.nestable.js"></script>
<script src="/public/js/nestable-init.js"></script>

<!--common scripts for all pages-->
<script src="/public/js/scripts.js"></script>
<script>

    jQuery(document).ready(function() {

            $('.selectpicker').selectpicker({
                size: 6
            });
        });
</script>
</body>
</html>
